package com.stylefeng.guns.modular.system.dao;

import com.stylefeng.guns.modular.system.model.VpnUserInfo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stylefeng.guns.modular.vpn.bo.UserIPBO;
import com.stylefeng.guns.modular.vpn.dto.UserQueryDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2020-03-02
 */
public interface VpnUserInfoMapper extends BaseMapper<VpnUserInfo> {
    Long queryAllCount(UserQueryDTO userQueryDTO);

    List<Map<String,Object>> findAllUsers(@Param("userName") String userName,
                                          @Param("regBeginTime") String beginTime,
                                          @Param("regEndTime") String endTime,
                                          @Param("packageId") String packageId);

    List<Map<String,Object>> findUserPage(UserQueryDTO userQueryDTO);
}
